#include<stdio.h>
#include<math.h>
main()
{
int a,b,c,arms,sum,ones,tens,hund;
printf("enter the number: ");
scanf("%d",&a);
ones=(a%10);
//printf("\nThe ones digit is %d",ones);
b=(a/10);
//printf("\nThe quotient for number %d",b);
tens=(b%10);
//printf("\nThe twos digit is %d",tens);
hund=(b/10);
//printf("\nThe third digit is %d\n",hund);
sum=((ones*ones*ones)+(tens*tens*tens)+(hund*hund*hund));
//printf("\n The sum is%d\n",sum);

if(a==sum)
{
printf("The number is armstrong\n");
}
else
{
printf("Try again!!! Number is armstrong\n");
}
}
